package excercise;

import java.io.ObjectInputStream.GetField;
import java.util.Scanner;

public class EX05_Q34 {


	public static void main(String[] args) {
	TemperVO tvo = new TemperVO();
	Scanner sc = new Scanner(System.in);
	int tmp;
	System.out.println( "현재 화씨를 입력하세요 ");
	tmp = sc.nextInt();
	tvo.setTemperF( tmp );
	tvo.setTemperC( TemperService.changeTemper( tvo ) );
	System.out.println( "현재 섭씨 온도 : " + tvo.getTemperC());
	
	
	
	} //main

} // class

class TemperVO{
	private float temperF;
	private float temperC;
	
	public TemperVO() { }
	
	// SG temperF
	public void setTemperF( float temperF ) { this.temperF = temperF; }
	public float getTemperF() { return this.temperF; }
	// SG temperC
	public void setTemperC( float temperC ) { this.temperC = temperC; }
	public float getTemperC() { return this.temperC; }
		
} // TemperVO

class TemperService{
	
	// 화씨를 섭씨로
	static float changeTemper( TemperVO tvo ){
		return ( (float) 100 / 180 ) * ( tvo.getTemperF() - 32 );
	}
	
} // TemperService